import { styled } from "styled-components";

interface IProps {
  iscurr: number
}

export const Areaitemv4Wrapper = styled.div<IProps>`
  display: flex;
  justify-content: space-between;
  border-radius: 8px;
  height: 32px;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 6px;
  color: ${props => props.iscurr ? `var(--color-primary)` : "#fff"} ;
  background-color: ${props => props.iscurr ? `var(--color-primary-bg) !important` : "transparent"} ;
  cursor: pointer;

  &:hover {
    background-color: var(--color-secondary-bg-for-transparent);

    .left-infos .icon {
      opacity: 1;
      margin-right: 15px;
    }
  }

  .left-infos {
    display: flex;
    align-items: center;

    .icon {
      opacity: 0;
      width: 18px;
      height: 18px;
      transition: all 300ms;

      img {
        width: 100%;
        height: 100%;
      }
    }

    .index {
      font-size: 22px;
      font-weight: 600;
      opacity: .88;
      margin-right: 15px;
    }

    .song-name {
      font-size: 20px;
      font-weight: 600;
      opacity: ${props => props.iscurr ? 1 : .77};
   }
  }

  .right-time {
    font-size: 14px;
    font-weight: 600;
    
  .createText {
      margin-right: 5px;
      font-size: 13px;
      opacity: .84;
    }
  }
 
`